<?

// DivShare API Example

#
#	This covers all the methods currently built in to the DivShare API client
#	Questions? E-mail us at support@divshare.com
#
#	Full API Docs: http://www.divshare.com/integrate/api
#

require ('divshare_lib_php4.php');

$ds = new divshare_api('API-KEY','SECRET');

$logged_in = $ds->login('your@email.com','password'); 

$user_info = $ds->get_user_info(); 

$user_files = $ds->get_user_files($limit, $offset); 

$folder_files = $ds->get_folder_files($folder_id, $limit, $offset); 

$files = $ds->get_files(array('file_id_1','file_id_2'));

$upload_ticket = $ds->get_upload_ticket();

$logout_result = $ds->logout();

?>
